package itheima.dao;

import itheima.entity.Order;
import org.apache.ibatis.annotations.Result;
import org.apache.ibatis.annotations.Results;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface OrderMapper {


    @Results({
            @Result(property = "userId",column = "user_id"),
            @Result(property = "createTime",column = "create_time")
    })
    @Select("select * from t_order where user_id = #{id}")
    List<Order> selectOrderById(Integer id);

}
